
<%@ page import="code.Kind" %>
<!doctype html>
<html>
	<head>
        <meta name="layout" content="backend">
        <g:set var="entityName" value="${message(code: 'kind.label', default: 'Kind')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
        <div class="gnav" role="navigation">
            <ul>
                <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
                <li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
            </ul>
        </div>
        <div id="show-kind" class="content scaffold-show" role="main">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message" role="status">${flash.message}</div>
            </g:if>
            <ol class="property-list kind">
            
                <g:if test="${kindInstance?.name}">
                <li class="fieldcontain">
                    <label for="name"><g:message code="kind.name.label"/></label>
                    <f:display bean="kindInstance" property="name" />
                </li>                
                </g:if>
            
                <g:if test="${kindInstance?.code}">
                <li class="fieldcontain">
                    <label for="code"><g:message code="kind.code.label"/></label>
                    <f:display bean="kindInstance" property="code" />
                </li>                
                </g:if>
            
                <g:if test="${kindInstance?.eng}">
                <li class="fieldcontain">
                    <label for="eng"><g:message code="kind.eng.label"/></label>
                    <f:display bean="kindInstance" property="eng" />
                </li>                
                </g:if>
            
                <g:if test="${kindInstance?.sort}">
                <li class="fieldcontain">
                    <label for="sort"><g:message code="kind.sort.label"/></label>
                    <f:display bean="kindInstance" property="sort" />
                </li>                
                </g:if>
            
            </ol>
            <g:form>
                <fieldset class="buttons">
                    <g:hiddenField name="id" value="${kindInstance?.id}" />
                    <g:link class="edit" action="edit" id="${kindInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
                    <g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
                </fieldset>
            </g:form>
        </div>
	</body>
</html>